/**
 * 
 */
package dms.dto;

import java.text.ParseException;
import java.util.Date;

import org.apache.struts.action.ActionForm;

import dms.util.DateFormatUtil;

/**
 * @author 李健
 *
 */
public class MailDTO extends ActionForm {
private Long id;
	
	private String student;
	
	private String dormitory;
	
	private String description;
	
	private String arriveDate;

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}


	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the arriveDate
	 */
	public Date getArriveDate() {
		try {
			return DateFormatUtil.parseDate(arriveDate);
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}

	/**
	 * @param arriveDate the arriveDate to set
	 */
	public void setArriveDate(String arriveDate) {
		this.arriveDate = arriveDate;
	}

	/**
	 * @return the dormitory
	 */
	public String getDormitory() {
		return dormitory;
	}

	/**
	 * @param dormitory the dormitory to set
	 */
	public void setDormitory(String dormitory) {
		this.dormitory = dormitory;
	}

	/**
	 * @return the student
	 */
	public String getStudent() {
		return student;
	}

	/**
	 * @param student the student to set
	 */
	public void setStudent(String student) {
		this.student = student;
	}
	
	
}
